-- GENERATED SPELL FOR [Scourge Technician] --


function spell0_27799(pUnit, Event) --@Lobotomize,n/a--
pUnit:FullCastSpellOnTarget(51316,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27799', 2276, 1)
end

function Sorts_27799(pUnit, Event)
local choix_sorts_27799 = math.random(0, 0)
if choix_sorts_27799 == 0 then
pUnit:RegisterEvent('spell0_27799', 1, 1)
end
end

function mob27799_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27799', math.random(1500, 3000), 1)
end

function mob27799_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27799_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27799_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27799, 1, 'mob27799_Action')
RegisterUnitEvent(27799, 2, 'mob27799_Leave')
RegisterUnitEvent(27799, 3, 'mob27799_Kill')
RegisterUnitEvent(27799, 4, 'mob27799_Die')
